﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
namespace sieuthi.Threelayer.VO
{
    public class nhanvienVO
    {
        public string MaNV { get; set; }
        public string ten { get; set; }
        public string ngaysinh{ get; set; }
        public string quequan { get; set; }
        public int Sdt { get; set; }
        public int Luong { get; set; }
        public string maGH { get; set; }
        public nhanvienVO nhanvienIDataReader(IDataReader dr)
        {
            nhanvienVO obj = new nhanvienVO();
            obj.MaNV = (dr["maNV"] is DBNull) ? string.Empty : dr["mancc"].ToString();
            obj.ten = (dr["ten"] is DBNull) ? string.Empty : dr["ten"].ToString();
            obj.ngaysinh = (dr["ngaysinh"] is DBNull) ? string.Empty : dr["diachi"].ToString();
            obj.quequan = (dr["quequan"] is DBNull) ? string.Empty : dr["diachi"].ToString();
            return obj;
        }
    }
}
